package com.hzhc.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hzhc.entity.SysUser;
import com.hzhc.vo.SysUserVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 系统用户 Mapper 接口
 * </p>
 *
 * @author duanhm
 * @since 2019-07-22
 */
@Mapper
public interface SysUserMapper extends BaseMapper<SysUser> {

    IPage<SysUserVo> findAllUserPage(Page<SysUserVo> page, @Param("vo") SysUserVo searchvo);

    List<Long> selectUserList(@Param("userId") Long userId);

    List<SysUser> selectOrgUserList(@Param("code") String code);

}
